package com.yzhl.wo_engineering.silce;

import com.yzhl.wo_engineering.utils.requestutil.ZZRCallBack;
import com.yzhl.wo_engineering.utils.requestutil.ZZRHttp;

import java.util.HashMap;
import java.util.Map;

public class MainAbilitySilce {

    public static void httpTest(String[] args) {
        String url="https://jxsbbx.gzmu.edu.cn/kewo/applogin";
        Map<String, String> map = new HashMap<>();
        map.put("username","18888888888");
        map.put("password","88888888");
        ZZRHttp.post(url,map, new ZZRCallBack.CallBackString() {
            @Override
            public void onFailure(int code, String errorMessage) {
                System.out.println("err"+errorMessage);
            }

            @Override
            public void onResponse(String response) {
                System.out.println(response);
            }
        });
    }
}
